package com.zenithsun.news.solr.model;

import java.util.HashMap;

import org.apache.solr.client.solrj.SolrQuery;

/**
 * SOLR 搜索模型
 * @author Jiang
 *
 */
public class SearchModel {
	//起始页
	private int start = 1;
	//每页行数
	private int limit = 20;
	//高亮
	private boolean highLight = true;
	//关键字
	private String keyWord;
	//排序
	private HashMap<String, SolrQuery.ORDER> order = new HashMap<>();
	public int getStart() {
		return start;
	}
	public void setStart(int start) {
		this.start = start;
	}
	public int getLimit() {
		return limit;
	}
	public void setLimit(int limit) {
		this.limit = limit;
	}
	public String getKeyWord() {
		return keyWord;
	}
	public void setKeyWord(String keyWord) {
		this.keyWord = keyWord;
	}
	public HashMap<String, SolrQuery.ORDER> getOrder() {
		return order;
	}
	public void setOrder(HashMap<String, SolrQuery.ORDER> order) {
		this.order = order;
	}
	public boolean getHighLight() {
		return highLight;
	}
	public void setHighLight(boolean highLight) {
		this.highLight = highLight;
	}
	
	
	
}
